]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
lightbox: Do not assume GLSL is available
authorAdel Gadllah <adel.gadllah@gmail.com>
Thu, 24 Jul 2014 13:40:19 +0000 (15:40 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Thu, 24 Jul 2014 14:51:02 +0000 (16:51 +0200)
Some hardware does not support it causing crashes in cogl during paint.

https://bugzilla.gnome.org/show_bug.cgi?id=733623

js/ui/lightbox.js

index 4b07debad08451e193f67fa5b5fa4ff009dc12a1..2188b23b3e048af09a823758e33ce88c8f2492f0 100644 (file)
@@ -105,8 +105,8 @@ const Lightbox = new Lang.Class({
         this._container = container;
         this._children = container.get_children();
         this._fadeFactor = params.fadeFactor;
-        this._radialEffect = params.radialEffect;
-        if (params.radialEffect)
+        this._radialEffect = Clutter.feature_available(Clutter.FeatureFlags.SHADERS_GLSL) && params.radialEffect;
+        if (this._radialEffect)
             this.actor = new RadialShaderQuad({ x: 0,
                                                 y: 0,
                                                 reactive: params.inhibitEvents });